package cn.com.nes.site.controller.crm.customer.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.crm.customer.bo.CustomerStaffBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel(value = "客户联系人删除入参模型")
@Data
public class CustomerStaffDeleteVO extends BaseVO {

    @ApiModelProperty(value = "要删除的客户联系人ID，可批量")
    @NotNull(message = "客户联系人ID")
    List<Long> ids;

    public CustomerStaffBO convertToBo() {
        CustomerStaffBO bo = new CustomerStaffBO();
        BeanUtils.copyProperties(this, bo);
        bo.setDeletedIds(this.getIds());
        return bo;
    }

}
